import request from '../request'

// 获取所有员工
export const getAllStaff = () => {
  return request.get('/admin/staffs')
};

// 获取审核员工
export const getPendStaff = () => {
  return request.get('/admin/staffs/pending')
}

// 获取所有客户
export const getAllCustomers = () => {
  return request.get('/admin/customers')
}

// 获取审核客户
export const getPendCustomers = () => {
  return request.get('/admin/customers/pending')
}

// 修改状态
export const changeStatus = (userStatusDTO) => {
  return request.put('/admin/users/change/status', userStatusDTO);
};

// 修改密码
export const changePassword = (passwordDto) => {
  return request.put(`/admin/users/change/password`, passwordDto)
}